package com.kly.user.rulePolicy;

import java.io.Serializable;

/**
 * 条件计算类
 * @author linqu
 */
public class Condition implements Serializable {

    private static final long serialVersionUID = 2243031799725734743L;
    /**
     * 序号
      */
    private Integer sortOrder;
    /**
     * 第一个变量
     */
    private Variable firstVariable;
    /**
     * 操作
     * @see com.kly.user.rulePolicy.enums.OperationEnum
     */
    private String operation;
    /**
     * 条件之前的关系（条件目前只支持AND, OR关系，且各条件之间优先级关系为：从左到右）
     * @see com.kly.user.rulePolicy.enums.ConditionComposeEnum
     */
    private String conditionCompose;
    /**
     * 第二个参数
     */
    private Variable secondVariable;

    public Condition() {
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Variable getFirstVariable() {
        return firstVariable;
    }

    public void setFirstVariable(Variable firstVariable) {
        this.firstVariable = firstVariable;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getConditionCompose() {
        return conditionCompose;
    }

    public void setConditionCompose(String conditionCompose) {
        this.conditionCompose = conditionCompose;
    }

    public Variable getSecondVariable() {
        return secondVariable;
    }

    public void setSecondVariable(Variable secondVariable) {
        this.secondVariable = secondVariable;
    }
}
